package nju.software.xkxt.data.dataobject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import nju.software.xkxt.service.model.ScoreModel;

/**
 * ScoreDO entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "score", catalog = "xkxtbeta")
public class ScoreDO implements java.io.Serializable {

	// Fields

	private Integer SId;
	private Integer TId;
	private Integer score;
	private Integer UId;
	private Integer CId;

	// Constructors

	/** default constructor */
	public ScoreDO() {
	}

	/** minimal constructor */
	public ScoreDO(Integer SId, Integer TId, Integer UId, Integer CId) {
		this.SId = SId;
		this.TId = TId;
		this.UId = UId;
		this.CId = CId;
	}

	/** full constructor */
	public ScoreDO(Integer SId, Integer TId, Integer score, Integer UId,
			Integer CId) {
		this.SId = SId;
		this.TId = TId;
		this.score = score;
		this.UId = UId;
		this.CId = CId;
	}

	public ScoreDO(ScoreModel model) {
		SId = model.getSId();
		TId = model.getTId();
		score = model.getScore();
		UId = model.getUId();
		CId = model.getCId();
	}

	// Property accessors
	@Id
	@Column(name = "s_id", unique = true, nullable = false)
	public Integer getSId() {
		return this.SId;
	}

	public void setSId(Integer SId) {
		this.SId = SId;
	}

	@Column(name = "t_id", nullable = false)
	public Integer getTId() {
		return this.TId;
	}

	public void setTId(Integer TId) {
		this.TId = TId;
	}

	@Column(name = "score")
	public Integer getScore() {
		return this.score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	@Column(name = "u_id", nullable = false)
	public Integer getUId() {
		return this.UId;
	}

	public void setUId(Integer UId) {
		this.UId = UId;
	}

	@Column(name = "c_id", nullable = false)
	public Integer getCId() {
		return this.CId;
	}

	public void setCId(Integer CId) {
		this.CId = CId;
	}

}